import 'package:flutter/material.dart';

class AnimatedPlaneIcon extends AnimatedWidget {
  const AnimatedPlaneIcon({super.key, required Animation<double> animation})
      : super(listenable: animation);

  @override
  Widget build(BuildContext context) {
    final Animation<double> animation = listenable as Animation<double>;
    return Icon(
      Icons.airplanemode_active,
      color: Colors.red,
      size: animation.value,
    );
  }
}
